package com.study.spark.scala.chapter05

object Scala05_Function_Hell_4 {
  def main(args: Array[String]): Unit = {
    // TODO 函数式编程
    def test(x :Int,y : Int,f :(Int,Int)=>Int): Unit ={
      val r = f(x,y)
      println(r)
    }

    // 匿名函数最简版
    test(10,20,_+_)//30

  }

}
  